package android.demo.activity.tab;

import android.content.Intent;
import android.demo.BaseActivity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TabHost;


public class TabPage1Activity extends BaseActivity implements TabHost.TabContentFactory {

	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Button btn = new Button(this);
		setContentView(btn);
		btn.setText("下一步");
		btn.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				startActivity();
			}
		});
	}

	private void startActivity() {
		startActivity(new Intent(this, TabPage1NextActivity.class));	
	}
	
	public View createTabContent(String tag) {
		// TODO Auto-generated method stub
		return null;
	}
}
